Adding a row in the images table is not hard. But, there is currently there is no way to determine if the image is empty or not. This will be addressed in coming versions.

In the future, please create your own thread for your questions.