GENERIC CLASS ON WORDPRESS POST IMAGES