Removing fragment class from image