fix single image issue
FIxed The condtional tags need to be checked for if ( $rtmedia_query ) to avoid fatal errors on page other than buddypress.
fix css error