Only extend paperclip if defined