Not deleting remote files and fixing SSL issue in photo URL